package joodle.ui;
/**
 * Represents the toolbar
 */
import javax.swing.JToolBar;
import joodle.domain.ShapeFactory;
import joodle.si.AddonManager;

@SuppressWarnings("serial")
public class ShapeToolBar extends JToolBar {
	public ShapeToolBar() {
		super("Shapes", JToolBar.VERTICAL);
		//this.setLayout(new GridLayout(2, 3));
		ShapeFactory[] sfs = AddonManager.factories();
		for(ShapeFactory sf : sfs)
			add(new ShapeCreatorAction(sf));
		add(new PointSelectionToolAction());
		add(new PointEditToolAction());
		add(new RotationToolAction());
		add(new TranslationToolAction());
		add(new ScaleToolAction());
		add(new GroupAction());
	}
}
